package us.mooresr.webtroopmanager.client.place;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class Validate extends Place {
	private String validationChallenge;
	
	
	public Validate(String validationChallenge) {
		this.validationChallenge = validationChallenge;
	}
	
	public String getValidationChallenge() {
		return validationChallenge;
	}


	public static class Tokenizer implements PlaceTokenizer<Validate> {


		@Override
		public Validate getPlace(String token) {
			return new Validate(token);
		}

		@Override
		public String getToken(Validate place) {
			return place.getValidationChallenge();
		}
	}

}
